quartz: do not cache the screen in the gdkmonitor
authorIgnacio Casal Quinteiro <qignacio@amazon.com>
Sun, 7 Oct 2018 19:51:35 +0000 (21:51 +0200)
committerIgnacio Casal Quinteiro <qignacio@amazon.com>
Wed, 17 Oct 2018 08:10:44 +0000 (10:10 +0200)
commit1729da8a3e611ce83624663b1cf762080a13eab2
treec8cd3bbe3a2ee9cfa582c1597d27c06ba8685cc1
parenta3ac3b61ef453d246cf666fbb23fa30d2afa90f7
quartz: do not cache the screen in the gdkmonitor

Instead we just cache the monitor number and get
out of it the nsscreen when it is needed. This is
a requirement since it nsscreen it is not supposed
to be cached.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1312
gdk/quartz/gdkmonitor-quartz.c
gdk/quartz/gdkmonitor-quartz.h
gdk/quartz/gdkscreen-quartz.c